package com.cqupt.scanning.system.acl.entity.vo;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Data: 2021/7/19 14:33
 * @Author: 宋宝梁
 */
@Data
public class RoleVO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 角色名称
     */
    @NotNull(message = "角色名不能为空")
    @NotBlank(message = "角色名不能为空")
    private String roleName;

    /**
     * 所属角色分组名
     */
    @NotNull(message = "角色组名不能为空")
    @NotBlank(message = "角色组名不能为空")
    private String roleGroupName;

    /**
     * 权限ids
     */
    @NotNull(message = "permissionIds不能为空")
    private Integer[] permissionIds;

    /**
     * 备注
     */
    private String remark;

    private Integer version;

    private Integer downloadNum;

    private Date createTime;

    private Date updateTime;

}
